﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FbKPI.Model;
using FbKPI.Controller;

namespace FbKPI.Facade
{
    public class KPIAssignmentFaced
    {
        public bool Save(int KpiID, List<KPIAssignment> listKPIAssignment, List<KPIAssignmentRgmType> listKPIAssignmentRgmType, List<KPIAssignmentRgm> listKPIAssignmentRgm
            , List<KPIAssignmentBranch> listKPIAssignmentBranch)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.Save(KpiID, listKPIAssignment, listKPIAssignmentRgmType, listKPIAssignmentRgm, listKPIAssignmentBranch);
        }

        public bool Save(int KpiID, List<KPIAssignmentBy> listKPIAssignmentBy)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.Save(KpiID, listKPIAssignmentBy);
        }

        public string CountKPIAssignmentBy(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignmentBy(KpiID);
        }

        public string CountKPIAssignmentByDua(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignmentByDua(KpiID);
        }

        public string CountKPIAssignment(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignment(KpiID);
        }

        public string CountKPIAssignmentRgmType(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignmentRgmType(KpiID);
        }

        public string CountKPIAssignmentRgm(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignmentRgm(KpiID);
        }

        public string CountKPIAssignmentBranch(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.CountKPIAssignmentBranch(KpiID);
        }

        public List<KPIAssignmentBy> GetByKpiAssignmentByID(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiAssignmentByID(KpiID);
        }

        public List<KPIAssignmentBy> GetByKpiAssignmentByIDDua(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiAssignmentByIDDua(KpiID);
        }

        public List<KPIAssignment> GetByKpiID(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiID(KpiID);
        }

        public List<KPIAssignmentRgmType> GetByKpiIDRgmType(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiIDRgmType(KpiID);
        }

        public List<KPIAssignmentRgm> GetByKpiIDRgm(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiIDRgm(KpiID);
        }

        public List<KPIAssignmentBranch> GetByKpiIDBranch(int KpiID)
        {
            KPIAssignmentController cont = new KPIAssignmentController();
            return cont.GetByKpiIDBranch(KpiID);
        }

    }
}